package com.tudouji.project.harvest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.harvest.mapper.WeighlistMapper;
import com.tudouji.project.harvest.domain.Weighlist;
import com.tudouji.project.harvest.service.IWeighlistService;

/**
 * 过磅单Service业务层处理
 * 
 * @author tudouji
 * @date 2021-05-12
 */
@Service
public class WeighlistServiceImpl implements IWeighlistService 
{
    @Autowired
    private WeighlistMapper weighlistMapper;

    /**
     * 查询过磅单
     * 
     * @param guid 过磅单ID
     * @return 过磅单
     */
    @Override
    public Weighlist selectWeighlistById(String guid)
    {
        return weighlistMapper.selectWeighlistById(guid);
    }

    /**
     * 查询过磅单列表
     * 
     * @param weighlist 过磅单
     * @return 过磅单
     */
    @Override
    public List<Weighlist> selectWeighlistList(Weighlist weighlist)
    {
        return weighlistMapper.selectWeighlistList(weighlist);
    }

    /**
     * 新增过磅单
     * 
     * @param weighlist 过磅单
     * @return 结果
     */
    @Override
    public int insertWeighlist(Weighlist weighlist)
    {
        return weighlistMapper.insertWeighlist(weighlist);
    }

    /**
     * 修改过磅单
     * 
     * @param weighlist 过磅单
     * @return 结果
     */
    @Override
    public int updateWeighlist(Weighlist weighlist)
    {
        return weighlistMapper.updateWeighlist(weighlist);
    }

    /**
     * 批量删除过磅单
     * 
     * @param guids 需要删除的过磅单ID
     * @return 结果
     */
    @Override
    public int deleteWeighlistByIds(String[] guids)
    {
        return weighlistMapper.deleteWeighlistByIds(guids);
    }

    /**
     * 删除过磅单信息
     * 
     * @param guid 过磅单ID
     * @return 结果
     */
    @Override
    public int deleteWeighlistById(String guid)
    {
        return weighlistMapper.deleteWeighlistById(guid);
    }
}
